# -*- coding: utf-8 -*
import pygame
import 配置

class 分数类:
    def __init__(self,分数数值):
        self.字体 = pygame.font.Font('simsunb.ttf', 36)
        self.文本 = self.字体.render(u"Life:"+str(分数数值), True, (255, 255, 255))
        self.位置 = (配置.画面大小[0]-150,0)

    def update(self,分数数值):
        self.文本 = self.字体.render(u"Life:"+str(分数数值), True, (255, 255, 255))

    def draw(self,screen):
        screen.blit(self.文本,self.位置)